package com.funkids.prxis.service.impl;

import com.funkids.prxis.entity.SysUserRole;
import com.funkids.prxis.mapper.SysUserRoleMapper;
import com.funkids.prxis.service.ISysUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author funkids
 * @since 2023-03-15
 */
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements ISysUserRoleService {

    @Autowired
    SysUserRoleMapper sysUserRoleMapper;

    @Override
    public List<Long> getRoleidByUserid(Long userid) {
        return sysUserRoleMapper.getRoleidByUserid(userid);
    }
}
